<!DOCTYPE html>

<!--
  ~  +----------------------------------------------------------------------
  ~  | 草帽支付系统 [ WE CAN DO IT JUST THINK ]
  ~  +----------------------------------------------------------------------
  ~  | Copyright (c) 2018 http://www.iredcap.cn All rights reserved.
  ~  +----------------------------------------------------------------------
  ~  | Licensed ( https://www.apache.org/licenses/LICENSE-2.0 )
  ~  +----------------------------------------------------------------------
  ~  | Author: Brian Waring <BrianWaring98@gmail.com>
  ~  +----------------------------------------------------------------------
  -->

<html>
<head>
    <meta charset="utf-8">
    <title>小红帽科技|草帽聚合支付 - 后台管理 - 支付渠道编辑</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="__STATIC__/common/layui/css/layui.css" media="all">
</head>
<body>

<div class="layui-form" style="padding: 20px 30px 0 0;">
    <input type="text" name="id" hidden disabled value="{$channel.id}">
    <div class="layui-form-item">
        <label class="layui-form-label">渠道名称：</label>
        <div class="layui-input-inline">
            <input type="text" name="name" required lay-verify="required" placeholder="请输入渠道名称" autocomplete="off" class="layui-input" value="{$channel.name}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">操作控制：</label>
        <div class="layui-input-inline">
            <input type="text" name="action" required lay-verify="required" placeholder="请输入操作控制器" autocomplete="off" class="layui-input" value="{$channel.action}">
            <div class="layui-form-mid layui-word-aux">注：执行相关控制器类名称</div>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">渠道费率：</label>
        <div class="layui-input-inline">
            <input type="text" name="rate" required lay-verify="required" placeholder="请输入渠道费率" autocomplete="off" class="layui-input" value="{$channel.rate}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">日限额：</label>
        <div class="layui-input-inline">
            <input type="text" name="daily" required lay-verify="required" placeholder="请输入渠道日限额" autocomplete="off" class="layui-input" value="{$channel.daily}">
        </div>
    </div>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">配置参数：</label>
        <div class="layui-input-block">
            <textarea name="param" placeholder="请输入支付请求参数" class="layui-textarea">{$channel.param}</textarea>
            <div class="layui-form-mid layui-word-aux">微信/QQ:{"mchid":"商户应用号","appid":"商户支付号","key":"商户KEY"}</div>
            <div class="layui-form-mid layui-word-aux">支付宝：{"appid":"应用号","private_key":"私钥"}</div>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">状态：</label>
        <div class="layui-input-inline">
            <div class="layui-input-inline">
                <input type="radio" name="status" value="1" title="启用" {$channel.status == 1?'checked':''}>
                <input type="radio" name="status" value="0" title="禁用" {$channel.status == 0?'checked':''}>
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">备注：</label>
        <div class="layui-input-block">
            <input type="text" name="remarks" value="{$channel.remarks}" required placeholder="请输入备注" autocomplete="off" class="layui-input" lay-filter="remark">
        </div>
    </div>
    <div class="layui-form-item layui-hide">
        <input type="button" lay-submit lay-filter="app-pay-channel-submit" id="app-pay-channel-submit" value="确认">
    </div>
</div>

<script src="__STATIC__/common/layui/layui.js"></script>
<script>
    layui.config({
        base: '__STATIC__/common/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'form'], function(){
        var $ = layui.$
            ,form = layui.form;

    })
</script>
</body>
</html>